<div class="navbar navbar-inverse {if $header_fixed}navbar-fixed-top{/if}">
	<div class="navbar-inner">
		<div class="container-fluid">
			<a href="#" class="brand">
				<small>
					<i class="icon-unlock-alt"></i>
					{$psa_result->html_page_title} <span id="header_ver">ver. {$psa_result->app_version}</span>
				</small>
			</a><!--/.brand-->
			{if $username}
			<ul class="nav ace-nav pull-right">
				
				<li class="grey">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<i class="icon-envelope-alt icon-only icon-animated-vertical"></i>
						<span class="badge badge-grey new_mails">0</span>
					</a>

					<ul id="last_3_mails" class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-closer">
					</ul>
				</li>

				<li class="purple">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<i class="icon-bell-alt icon-only icon-animated-bell"></i>
						<span class="badge badge-important new_all">0</span>
					</a>

					<ul class="pull-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-closer">
						<li class="nav-header">
							<i class="icon-warning-sign"></i>
							<span class="new_all">0</span> Notifications
						</li>
						
						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">
										<i class="btn btn-mini no-hover btn-danger icon-comment"></i>
										Important
									</span>
									<span class="pull-right badge badge-important" id="new_important">0</span>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">
										<i class="btn btn-mini no-hover btn-primary icon-comment"></i>
										New Messages
									</span>
									<span class="pull-right badge badge-info" id="new_messages">0</span>
								</div>
							</a>
						</li>
						
						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">
										<i class="btn btn-mini no-hover btn-warning icon-comment"></i>
										New Tasks
									</span>
									<span class="pull-right badge badge-info" id="new_task">0</span>
								</div>
							</a>
						</li>
						
						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">
										<i class="btn btn-mini no-hover btn-pink icon-comment"></i>
										New To Do
									</span>
									<span class="pull-right badge badge-info" id="new_to_do">0</span>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								See all notifications
								<i class="icon-arrow-right"></i>
							</a>
						</li>
					</ul>
				</li>

				<li class="green">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<i class="icon-group"></i>
						<span class="badge badge-success online_user_all">0</span>
					</a>

					<ul id="online_user" class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-closer">
					</ul>
				</li>
				
				<li class="light-blue user-profile">
					<a data-toggle="dropdown" href="#" class="user-menu dropdown-toggle">
						<img class="nav-user-photo" src="{$psa_result->basedir_web}/lib/themes/images/{$username}.png" alt="{$username}'s Photo" />
						<span id="user_info">
							<small>Welcome,</small>
							{$full_name}
						</span>

						<i class="icon-caret-down"></i>
					</a>

					<ul class="pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-closer" id="user_menu">
						<li>
							<a href="#">
								<i class="icon-cog"></i>
								Settings
							</a>
						</li>

						<li>
							<a href="#">
								<i class="icon-user"></i>
								Profile
							</a>
						</li>

						<li class="divider"></li>

						<li>
							<a href="{$psa_result->basedir_web}/default/logout">
								<i class="icon-off"></i>
								Logout
							</a>
						</li>
					</ul>
				</li>
			</ul><!--/.w8-nav-->
			{/if}
		</div><!--/.container-fluid-->
	</div><!--/.navbar-inner-->
</div>

<input type="hidden" id="basedir_web" value="{$psa_result->basedir_web}">